package com.cy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("管理员实体类")
public class Admin {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("管理员ID")
    private Integer id;
    @ApiModelProperty("管理员登录账号")
    private String username;
    @ApiModelProperty("管理员登录密码")
    private String password;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("登录时间")
    private Date loginTime;
    @ApiModelProperty("权限")
    private String permission;
}
